package com.baida.retail.tasksystem.enums;

public enum Command {
    GET_MOST_URGENT_TASK_DETAILS,
    GET_PENDING_START_TASK_COUNT,
    GET_TASK_LIST,
    GET_TASK_DETAILS,
    GET_ORDER_PRINT_INFO,
    START_TASK,
    SORT_GOODS,
    REPORT_OUT_OF_STOCK,
    FORCED_FINISH_TASK,
    FINISH_TASK,
    AQUATIC_PRODUCTION_FINISH_NOTIFICATION,
    ORDER_CANCEL_NOTIFICATION,
    ORDER_ITEM_REFUND_NOTIFICATION,
    ORDER_DELIVERY_TIME_CHANGED_NOTIFICATION;

    public static Command from(String command) {
        for (Command cmd : Command.values()) {
            if (command.equals(cmd.toString())) {
                return cmd;
            }
        }
        return null;
    }
}
